using System;
using System.Runtime.Serialization;

namespace MoneyTracking.Common
{
    [DataContract]
    public class ServiceResponse
    {
        #region private members
        private string _errorMessage;
        private object _result;
        private bool _isSuccess;
        private Exception _serviceException;
        #endregion
        [DataMember]
        public string ErrorMessage
        {
            get { return _errorMessage; }
            set { _errorMessage = value; }
        }

        [DataMember]
        public object Result
        {
            get { return _result; }
            set { _result = value; }
        }

        [DataMember]
        public bool IsSuccess
        {
            get { return _isSuccess; }
            set { _isSuccess = value; }
        }

        [DataMember]
        public Exception ServiceException
        {
            get { return _serviceException; }
            set { _serviceException = value; }
        }
    }
}